package com.richest.api.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.richest.api.dao.ImageMapper;
import com.richest.api.service.IImageService;
import com.richest.bean.ImageBean;

/**
 * 图片服务接口实现
 * 
 * @author 杨博
 * @version richest-api 2.0
 *
 */
@Service
public class ImageServiceImpl implements IImageService {

	@Autowired
	private ImageMapper mapper;

	@Override
	public Long imageAdd(ImageBean bean) {
		return mapper.imageAdd(bean);
	}

	@Override
	public Integer imageUpdate(ImageBean bean) {
		return mapper.imageUpdate(bean);
	}

	@Override
	public Integer imageDelete(Long id) {
		return mapper.imageDelete(id);
	}

	@Override
	public ImageBean imageSelectOne(Long id) {
		return mapper.imageSelectOne(id);
	}

	@Override
	public List<Map<String, Object>> imageSelectMap(Map<String, Object> params) {
		return mapper.imageSelectMap(params);
	}
}
